package testing;

import java.io.File;
import java.util.ArrayList;

import app.*;

public class UpdateRecipeTest {

	public static void main(String[] args) {
		ArrayList<Ingredient> ingredients = new ArrayList<Ingredient>();
		Cookbook cookbook = new Cookbook();
		ingredients.add(new Ingredient(9, "updated", (float)6.0, Measurement.PINT));
		ingredients.add(new Ingredient(10, "updatedier", (float)8.1, Measurement.KILOGRAM));
		ingredients.add(new Ingredient("newest", (float)9, Measurement.PECKS));
		String file = "updated";
		Recipe recipe = new Recipe(6, "backtrack", ingredients, "MOAR", 15, 15, file, true, 15, cookbook.pullCategory(15) );
		cookbook.updateRecipeInDB(recipe);
	}
}